
call %~dp0pathx.bat

:autohotkey moni1.ahk
 
 :loop
 
wmic process where "name='cmd.exe' " | findstr mainJavaProces_monitor.bat
IF ERRORLEVEL 1 GOTO notExist_mainJavaProcessMonite
IF ERRORLEVEL 0 GOTO ifBlockend 
:notExist_mainJavaProcessMonite
		start "mainJavaProcessMonite.bat"  %~dp0mainJavaProces_monitor.bat
	rem 	goto ifBlockend
:okend
 
:ifBlockend


rem ;--------------auto close office process bat
	wmic process where "name='cmd.exe' " | findstr office_timeout_closer.bat
IF ERRORLEVEL 1 GOTO notExist_auto_close_timeout_office
IF ERRORLEVEL 0 GOTO ifBlockend3
:notExist_auto_close_timeout_office
		start "office_timeout_closer.bat"  %office_closer_dir%office_timeout_closer.bat
		rem endblock
:okend
 
:ifBlockend3
	
	
	
	
	
rem 	;--------------moni2 

wmic process where "name='cmd.exe' " | findstr moni2.bat
IF ERRORLEVEL 1 GOTO notExist_moni2
IF ERRORLEVEL 0 GOTO ifBlockend2
:notExist_moni2
		start "moni2.bat"  %~dp0moni2.bat
		rem goto ifBlockend2
:okend
 
:ifBlockend2

 ping 127.0.0.1 -n 5

goto loop
